/*********************************************************************************************
 *
 *			function to compare n number of string											 *
 *
 ********************************************************************************************/
#include "mystrings.h"

int mystrncmp (const char *str1, const char *str2, int n )
	{					/* porcedure to compare 2 strings with te count */

	for ( ;(--n )&& (*str1 == *str2) ; str1++,str2++ ){
		if ( *str1 == '\0')
			return 0;
	}
	return (int) (*str1 - *str2);
}

